
package org.bridgen.lang.semantics.ast;
import java.util.*;



/* Java Block */


public class JavaBlock extends ASTNode<ASTNode> implements Cloneable {
    public void flushCache() {
        super.flushCache();
    }
     @SuppressWarnings({"unchecked", "cast"})  public JavaBlock clone() throws CloneNotSupportedException {
        JavaBlock node = (JavaBlock)super.clone();
        node.in$Circle(false);
        node.is$Final(false);
    return node;
    }
     @SuppressWarnings({"unchecked", "cast"})  public JavaBlock copy() {
      try {
          JavaBlock node = (JavaBlock)clone();
          if(children != null) node.children = (ASTNode[])children.clone();
          return node;
      } catch (CloneNotSupportedException e) {
      }
      System.err.println("Error: Could not clone node of type " + getClass().getName() + "!");
      return null;
    }
     @SuppressWarnings({"unchecked", "cast"})  public JavaBlock fullCopy() {
        JavaBlock res = (JavaBlock)copy();
        for(int i = 0; i < getNumChildNoTransform(); i++) {
          ASTNode node = getChildNoTransform(i);
          if(node != null) node = node.fullCopy();
          res.setChild(node, i);
        }
        return res;
    }
    // Declared in PrettyPrint.jrag at line 215

    
    public void pp(StringBuffer buf) {
     	buf.append("\n" + indent() + "@@" + getContent() + "\n" + indent() + "@@");
    }

    // Declared in bridgit.ast at line 3
    // Declared in bridgit.ast line 69

    public JavaBlock() {
        super();


    }

    // Declared in bridgit.ast at line 10


    // Declared in bridgit.ast line 69
    public JavaBlock(String p0) {
        setContent(p0);
    }

    // Declared in bridgit.ast at line 14


  protected int numChildren() {
    return 0;
  }

    // Declared in bridgit.ast at line 17

  public boolean mayHaveRewrite() { return false; }

    // Declared in bridgit.ast at line 2
    // Declared in bridgit.ast line 69
    protected String tokenString_Content;

    // Declared in bridgit.ast at line 3

    public void setContent(String value) {
        tokenString_Content = value;
    }

    // Declared in bridgit.ast at line 6

    public String getContent() {
        return tokenString_Content != null ? tokenString_Content : "";
    }

    // Declared in PrettyPrint.jrag at line 22
 @SuppressWarnings({"unchecked", "cast"})     public String indent() {
        String indent_value = getParent().Define_String_indent(this, null);
        return indent_value;
    }

public ASTNode rewriteTo() {
    return super.rewriteTo();
}

}
